package com.zhang.demo.injector.module

import android.content.Context
import com.zhang.demo.model.db.DBManager
import dagger.Module
import dagger.Provides
import javax.inject.Singleton

@Module
class ApplicationModule(private val context: Context) {

    @Provides
    @Singleton
    fun provideApplicationContext(): Context {
        return context.applicationContext
    }

    @Provides
    @Singleton
    fun provideDBManager(): DBManager {
        return DBManager(context)
    }
   /* @Provides
    @Singleton
    fun provideFileManager(): FileManager {
        return FileManager(context)
    }*/
}